<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>knet: 框架配置</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">knet
   &#160;<span id="projectnumber">1.4.5</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="modules.html"><span>模块</span></a></li>
      <li><a href="annotated.html"><span>结构体</span></a></li>
      <li><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">框架配置</div>  </div>
</div><!--header-->
<div class="contents">

<p>框架配置  
<a href="#details">更多...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:ga45b64d2f395031b60dd33412f55242b4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00115_ga45b64d2f395031b60dd33412f55242b4.html#ga45b64d2f395031b60dd33412f55242b4">knet_framework_config_load_config_file</a> (<a class="el" href="a00056_adeaf952e0f0887507ff836385bf54874.html#adeaf952e0f0887507ff836385bf54874">kframework_config_t</a> *c, const char *path)</td></tr>
<tr class="memdesc:ga45b64d2f395031b60dd33412f55242b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">从文件加载配置  <a href="a00115_ga45b64d2f395031b60dd33412f55242b4.html#ga45b64d2f395031b60dd33412f55242b4">更多...</a><br /></td></tr>
<tr class="separator:ga45b64d2f395031b60dd33412f55242b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad468ed615a958baef04c26eb8fe53efd"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00115_gad468ed615a958baef04c26eb8fe53efd.html#gad468ed615a958baef04c26eb8fe53efd">knet_framework_config_load_config_string</a> (<a class="el" href="a00056_adeaf952e0f0887507ff836385bf54874.html#adeaf952e0f0887507ff836385bf54874">kframework_config_t</a> *c, const char *config_string)</td></tr>
<tr class="memdesc:gad468ed615a958baef04c26eb8fe53efd"><td class="mdescLeft">&#160;</td><td class="mdescRight">从配置字符串加载配置  <a href="a00115_gad468ed615a958baef04c26eb8fe53efd.html#gad468ed615a958baef04c26eb8fe53efd">更多...</a><br /></td></tr>
<tr class="separator:gad468ed615a958baef04c26eb8fe53efd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga470f4acf8c70060852d435753375fa3b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00115_ga470f4acf8c70060852d435753375fa3b.html#ga470f4acf8c70060852d435753375fa3b">knet_framework_config_set_worker_thread_count</a> (<a class="el" href="a00056_adeaf952e0f0887507ff836385bf54874.html#adeaf952e0f0887507ff836385bf54874">kframework_config_t</a> *c, int worker_thread_count)</td></tr>
<tr class="memdesc:ga470f4acf8c70060852d435753375fa3b"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置工作线程数量，默认为单线程  <a href="a00115_ga470f4acf8c70060852d435753375fa3b.html#ga470f4acf8c70060852d435753375fa3b">更多...</a><br /></td></tr>
<tr class="separator:ga470f4acf8c70060852d435753375fa3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga42497b09d9d0c4039a062ff750ead0a9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00115_ga42497b09d9d0c4039a062ff750ead0a9.html#ga42497b09d9d0c4039a062ff750ead0a9">knet_framework_config_set_worker_timer_freq</a> (<a class="el" href="a00056_adeaf952e0f0887507ff836385bf54874.html#adeaf952e0f0887507ff836385bf54874">kframework_config_t</a> *c, time_t freq)</td></tr>
<tr class="memdesc:ga42497b09d9d0c4039a062ff750ead0a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置工作线程内定时器分辨率  <a href="a00115_ga42497b09d9d0c4039a062ff750ead0a9.html#ga42497b09d9d0c4039a062ff750ead0a9">更多...</a><br /></td></tr>
<tr class="separator:ga42497b09d9d0c4039a062ff750ead0a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae0c5bc540a44a88d64390845744f736f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00115_gae0c5bc540a44a88d64390845744f736f.html#gae0c5bc540a44a88d64390845744f736f">knet_framework_config_set_worker_timer_slot</a> (<a class="el" href="a00056_adeaf952e0f0887507ff836385bf54874.html#adeaf952e0f0887507ff836385bf54874">kframework_config_t</a> *c, int slot)</td></tr>
<tr class="memdesc:gae0c5bc540a44a88d64390845744f736f"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置工作线程内定时器槽位数量  <a href="a00115_gae0c5bc540a44a88d64390845744f736f.html#gae0c5bc540a44a88d64390845744f736f">更多...</a><br /></td></tr>
<tr class="separator:gae0c5bc540a44a88d64390845744f736f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga681a7f8e071507cc60f8f56043fe4443"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00056_a39c993eb450173e4fde04498d757f9b6.html#a39c993eb450173e4fde04498d757f9b6">kframework_acceptor_config_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00115_ga681a7f8e071507cc60f8f56043fe4443.html#ga681a7f8e071507cc60f8f56043fe4443">knet_framework_config_new_acceptor</a> (<a class="el" href="a00056_adeaf952e0f0887507ff836385bf54874.html#adeaf952e0f0887507ff836385bf54874">kframework_config_t</a> *c)</td></tr>
<tr class="memdesc:ga681a7f8e071507cc60f8f56043fe4443"><td class="mdescLeft">&#160;</td><td class="mdescRight">建立监听器配置  <a href="a00115_ga681a7f8e071507cc60f8f56043fe4443.html#ga681a7f8e071507cc60f8f56043fe4443">更多...</a><br /></td></tr>
<tr class="separator:ga681a7f8e071507cc60f8f56043fe4443"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga135342b1a0a31db4d614ee96a76d3e46"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00056_a44d3033eba5a4fd784a741700a7a2521.html#a44d3033eba5a4fd784a741700a7a2521">kframework_connector_config_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00115_ga135342b1a0a31db4d614ee96a76d3e46.html#ga135342b1a0a31db4d614ee96a76d3e46">knet_framework_config_new_connector</a> (<a class="el" href="a00056_adeaf952e0f0887507ff836385bf54874.html#adeaf952e0f0887507ff836385bf54874">kframework_config_t</a> *c)</td></tr>
<tr class="memdesc:ga135342b1a0a31db4d614ee96a76d3e46"><td class="mdescLeft">&#160;</td><td class="mdescRight">建立连接器配置  <a href="a00115_ga135342b1a0a31db4d614ee96a76d3e46.html#ga135342b1a0a31db4d614ee96a76d3e46">更多...</a><br /></td></tr>
<tr class="separator:ga135342b1a0a31db4d614ee96a76d3e46"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae13e628b69405ef9a338980da9475b53"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00115_gae13e628b69405ef9a338980da9475b53.html#gae13e628b69405ef9a338980da9475b53">knet_framework_acceptor_config_set_local_address</a> (<a class="el" href="a00056_a39c993eb450173e4fde04498d757f9b6.html#a39c993eb450173e4fde04498d757f9b6">kframework_acceptor_config_t</a> *c, const char *ip, int port)</td></tr>
<tr class="memdesc:gae13e628b69405ef9a338980da9475b53"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置监听器本地地址  <a href="a00115_gae13e628b69405ef9a338980da9475b53.html#gae13e628b69405ef9a338980da9475b53">更多...</a><br /></td></tr>
<tr class="separator:gae13e628b69405ef9a338980da9475b53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab236e9cd130017f98625904439052b30"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00115_gab236e9cd130017f98625904439052b30.html#gab236e9cd130017f98625904439052b30">knet_framework_acceptor_config_set_backlog</a> (<a class="el" href="a00056_a39c993eb450173e4fde04498d757f9b6.html#a39c993eb450173e4fde04498d757f9b6">kframework_acceptor_config_t</a> *c, int backlog)</td></tr>
<tr class="memdesc:gab236e9cd130017f98625904439052b30"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置监听器等待队列长度  <a href="a00115_gab236e9cd130017f98625904439052b30.html#gab236e9cd130017f98625904439052b30">更多...</a><br /></td></tr>
<tr class="separator:gab236e9cd130017f98625904439052b30"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0f1a47656155b56aa812b07d44a8aa81"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00115_ga0f1a47656155b56aa812b07d44a8aa81.html#ga0f1a47656155b56aa812b07d44a8aa81">knet_framework_acceptor_config_set_client_heartbeat_timeout</a> (<a class="el" href="a00056_a39c993eb450173e4fde04498d757f9b6.html#a39c993eb450173e4fde04498d757f9b6">kframework_acceptor_config_t</a> *c, int timeout)</td></tr>
<tr class="memdesc:ga0f1a47656155b56aa812b07d44a8aa81"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置客户端心跳超时  <a href="a00115_ga0f1a47656155b56aa812b07d44a8aa81.html#ga0f1a47656155b56aa812b07d44a8aa81">更多...</a><br /></td></tr>
<tr class="separator:ga0f1a47656155b56aa812b07d44a8aa81"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga03a86f8b8fc13e6fb8f1ca75e7f14d7a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00115_ga03a86f8b8fc13e6fb8f1ca75e7f14d7a.html#ga03a86f8b8fc13e6fb8f1ca75e7f14d7a">knet_framework_acceptor_config_set_client_cb</a> (<a class="el" href="a00056_a39c993eb450173e4fde04498d757f9b6.html#a39c993eb450173e4fde04498d757f9b6">kframework_acceptor_config_t</a> *c, <a class="el" href="a00056_a8a7d96123ef4565c6d08fe58a10476a9.html#a8a7d96123ef4565c6d08fe58a10476a9">knet_channel_ref_cb_t</a> cb)</td></tr>
<tr class="memdesc:ga03a86f8b8fc13e6fb8f1ca75e7f14d7a"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置客户端回调函数  <a href="a00115_ga03a86f8b8fc13e6fb8f1ca75e7f14d7a.html#ga03a86f8b8fc13e6fb8f1ca75e7f14d7a">更多...</a><br /></td></tr>
<tr class="separator:ga03a86f8b8fc13e6fb8f1ca75e7f14d7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga23b21427272c85b9730304add2cbd054"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00115_ga23b21427272c85b9730304add2cbd054.html#ga23b21427272c85b9730304add2cbd054">knet_framework_acceptor_config_set_client_max_send_list_count</a> (<a class="el" href="a00056_a39c993eb450173e4fde04498d757f9b6.html#a39c993eb450173e4fde04498d757f9b6">kframework_acceptor_config_t</a> *c, int max_send_list_count)</td></tr>
<tr class="memdesc:ga23b21427272c85b9730304add2cbd054"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置客户端发送链表最大长度  <a href="a00115_ga23b21427272c85b9730304add2cbd054.html#ga23b21427272c85b9730304add2cbd054">更多...</a><br /></td></tr>
<tr class="separator:ga23b21427272c85b9730304add2cbd054"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga44e90ae8fe6b358dbcd77c447ead94fc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00115_ga44e90ae8fe6b358dbcd77c447ead94fc.html#ga44e90ae8fe6b358dbcd77c447ead94fc">knet_framework_acceptor_config_set_client_max_recv_buffer_length</a> (<a class="el" href="a00056_a39c993eb450173e4fde04498d757f9b6.html#a39c993eb450173e4fde04498d757f9b6">kframework_acceptor_config_t</a> *c, int max_recv_buffer_length)</td></tr>
<tr class="memdesc:ga44e90ae8fe6b358dbcd77c447ead94fc"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置客户端接收缓冲区最大长度  <a href="a00115_ga44e90ae8fe6b358dbcd77c447ead94fc.html#ga44e90ae8fe6b358dbcd77c447ead94fc">更多...</a><br /></td></tr>
<tr class="separator:ga44e90ae8fe6b358dbcd77c447ead94fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae677441ee9bcc61da7c7728ce3ae773e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00115_gae677441ee9bcc61da7c7728ce3ae773e.html#gae677441ee9bcc61da7c7728ce3ae773e">knet_framework_connector_config_set_remote_address</a> (<a class="el" href="a00056_a44d3033eba5a4fd784a741700a7a2521.html#a44d3033eba5a4fd784a741700a7a2521">kframework_connector_config_t</a> *c, const char *ip, int port)</td></tr>
<tr class="memdesc:gae677441ee9bcc61da7c7728ce3ae773e"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置连接器需要连接的地址  <a href="a00115_gae677441ee9bcc61da7c7728ce3ae773e.html#gae677441ee9bcc61da7c7728ce3ae773e">更多...</a><br /></td></tr>
<tr class="separator:gae677441ee9bcc61da7c7728ce3ae773e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga186f2fb032c5b2350e990c63b5aa628e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00115_ga186f2fb032c5b2350e990c63b5aa628e.html#ga186f2fb032c5b2350e990c63b5aa628e">knet_framework_connector_config_set_heartbeat_timeout</a> (<a class="el" href="a00056_a44d3033eba5a4fd784a741700a7a2521.html#a44d3033eba5a4fd784a741700a7a2521">kframework_connector_config_t</a> *c, int timeout)</td></tr>
<tr class="memdesc:ga186f2fb032c5b2350e990c63b5aa628e"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置连接器心跳超时  <a href="a00115_ga186f2fb032c5b2350e990c63b5aa628e.html#ga186f2fb032c5b2350e990c63b5aa628e">更多...</a><br /></td></tr>
<tr class="separator:ga186f2fb032c5b2350e990c63b5aa628e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacf0d08bb6f135c12326d30acad7456f1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00115_gacf0d08bb6f135c12326d30acad7456f1.html#gacf0d08bb6f135c12326d30acad7456f1">knet_framework_connector_config_set_connect_timeout</a> (<a class="el" href="a00056_a44d3033eba5a4fd784a741700a7a2521.html#a44d3033eba5a4fd784a741700a7a2521">kframework_connector_config_t</a> *c, int timeout)</td></tr>
<tr class="memdesc:gacf0d08bb6f135c12326d30acad7456f1"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置连接器连接超时  <a href="a00115_gacf0d08bb6f135c12326d30acad7456f1.html#gacf0d08bb6f135c12326d30acad7456f1">更多...</a><br /></td></tr>
<tr class="separator:gacf0d08bb6f135c12326d30acad7456f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga984a212938eb7d5b79fae88c5eeb1644"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00115_ga984a212938eb7d5b79fae88c5eeb1644.html#ga984a212938eb7d5b79fae88c5eeb1644">knet_framework_connector_config_set_auto_reconnect</a> (<a class="el" href="a00056_a44d3033eba5a4fd784a741700a7a2521.html#a44d3033eba5a4fd784a741700a7a2521">kframework_connector_config_t</a> *c, int auto_reconnect)</td></tr>
<tr class="memdesc:ga984a212938eb7d5b79fae88c5eeb1644"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置连接器自动重连  <a href="a00115_ga984a212938eb7d5b79fae88c5eeb1644.html#ga984a212938eb7d5b79fae88c5eeb1644">更多...</a><br /></td></tr>
<tr class="separator:ga984a212938eb7d5b79fae88c5eeb1644"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga03024112cca453db282a4aa4af7bedc8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00115_ga03024112cca453db282a4aa4af7bedc8.html#ga03024112cca453db282a4aa4af7bedc8">knet_framework_connector_config_set_cb</a> (<a class="el" href="a00056_a44d3033eba5a4fd784a741700a7a2521.html#a44d3033eba5a4fd784a741700a7a2521">kframework_connector_config_t</a> *c, <a class="el" href="a00056_a8a7d96123ef4565c6d08fe58a10476a9.html#a8a7d96123ef4565c6d08fe58a10476a9">knet_channel_ref_cb_t</a> cb)</td></tr>
<tr class="memdesc:ga03024112cca453db282a4aa4af7bedc8"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置连接器回调函数  <a href="a00115_ga03024112cca453db282a4aa4af7bedc8.html#ga03024112cca453db282a4aa4af7bedc8">更多...</a><br /></td></tr>
<tr class="separator:ga03024112cca453db282a4aa4af7bedc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga32b058fe0a17d4a609097157761bb9f1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00115_ga32b058fe0a17d4a609097157761bb9f1.html#ga32b058fe0a17d4a609097157761bb9f1">knet_framework_connector_config_set_client_max_send_list_count</a> (<a class="el" href="a00056_a44d3033eba5a4fd784a741700a7a2521.html#a44d3033eba5a4fd784a741700a7a2521">kframework_connector_config_t</a> *c, int max_send_list_count)</td></tr>
<tr class="memdesc:ga32b058fe0a17d4a609097157761bb9f1"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置连接器发送链表最大长度  <a href="a00115_ga32b058fe0a17d4a609097157761bb9f1.html#ga32b058fe0a17d4a609097157761bb9f1">更多...</a><br /></td></tr>
<tr class="separator:ga32b058fe0a17d4a609097157761bb9f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga671b44cb682198b418b21749e6b2fdbe"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00115_ga671b44cb682198b418b21749e6b2fdbe.html#ga671b44cb682198b418b21749e6b2fdbe">knet_framework_connector_config_set_client_max_recv_buffer_length</a> (<a class="el" href="a00056_a44d3033eba5a4fd784a741700a7a2521.html#a44d3033eba5a4fd784a741700a7a2521">kframework_connector_config_t</a> *c, int max_recv_buffer_length)</td></tr>
<tr class="memdesc:ga671b44cb682198b418b21749e6b2fdbe"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置连接器接收缓冲区最大长度  <a href="a00115_ga671b44cb682198b418b21749e6b2fdbe.html#ga671b44cb682198b418b21749e6b2fdbe">更多...</a><br /></td></tr>
<tr class="separator:ga671b44cb682198b418b21749e6b2fdbe"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<p>框架配置 </p>
<pre>
1. 提供kframework_t内建立的监听器、连接器配置接口
2. 设置工作线程的数量，工作线程将实际负载管道</pre><pre>监听器 - 启动前建立:
    kframework_acceptor_config_t* ac = knet_framework_config_new_acceptor(c);
    knet_framework_acceptor_config_set_local_address(ac, "127.0.0.1", 80);
    knet_framework_acceptor_config_set_client_cb(ac, cb);
    ......
    knet_framework_start(...);
    ......</pre><pre>连接器 - 启动前建立:
    kframework_connector_config_t* cc = knet_framework_config_new_connector(c);
    knet_framework_connector_config_set_remote_address(cc, "127.0.0.1", 80);
    knet_framework_connector_config_set_cb(cc, cb);
    ......
    knet_framework_start(...);
    ......</pre><pre>监听器 - 启动后建立:
    kframework_acceptor_config_t* ac = knet_framework_config_new_acceptor(c);
    knet_framework_acceptor_config_set_local_address(ac, "127.0.0.1", 80);
    knet_framework_acceptor_config_set_client_cb(ac, cb);
    knet_framework_acceptor_start(..., ac);</pre><pre>连接器 - 启动后建立:
    kframework_connector_config_t* cc = knet_framework_config_new_connector(c);
    knet_framework_connector_config_set_remote_address(cc, "127.0.0.1", 80);
    knet_framework_connector_config_set_cb(cc, cb);
    knet_framework_connector_start(..., cc);</pre><pre></pre> </div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2015年 七月 27日 星期一 14:33:20 , 为 knet使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
